package org.ysh.core.ocr;

import com.benjaminwan.ocrlibrary.OcrResult;
import org.ysh.annotation.OcrDetector;

/**
 * 进行图片识别
 */
@OcrDetector(fileExt = {"bmp","jpg","jpeg","tif","tiff","png","gif"})
public class ImageOcrDetect implements OcrDetect{
    @Override
    public OcrResult detect(String imgPath) {
        return OcrUtils.detect(imgPath);
    }
}
